/**
 *
 * @description:
 * @author:junyong.hong
 * @createTime:2017/12/7
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */
define([
    'app'
],function(app){
    'use strict';
    app.controller('phoneFilter.controller',['$scope', '$state',function ($scope, $state) {
        var vm = this;

        vm.data =[
            {id:1, name:'hjy',mobile:'15659991401'},
            {id:2, name:'hjy',mobile:'15060135535'}
        ];

    }]);

    app.filter('truncate',function () {
        return function (mobile,len) {
            len = len ? len : 3;
            return mobile.substr(0,11-len) + new String('*').repeat(len);
        }
    })
});